#ifndef __XLIB_H__
#define __XLIB_H__

#include <stdio.h>
#include "mytype.h"



u16 LoadInt16_BigE(u8 *pData);
u32 LoadInt32_BigE(u8 *pData);
u16 LoadInt16(u8 *pData);
u32 LoadInt32(u8 *pData);
u8 CalChkSum(u8* array, u16 len);


uint32_t TickerStart(void);
bool TickerOutCheck(uint32_t time, uint32_t duration_ticks);
bool TickerOut(uint32_t start, uint32_t duration_ticks);
uint32_t MS2TICKS(uint32_t ms);
uint32_t TickerStart_RtnNonZero(void);

#endif